import { ProPage } from '@hczy/ant-design-vue'
import ProCard from '@hczy/ant-design-vue/lib/packages/card'
import ProForm from '@hczy/ant-design-vue/lib/packages/form'
import ProTable from '@hczy/ant-design-vue/lib/packages/table'
import IconProxy from './Icon/icon.js'

const components = [
  ProPage
]

function install(Vue) {
  Vue.use(ProTable)
  Vue.use(IconProxy)
  Vue.use(ProCard)
  Vue.use(ProForm)

  components.forEach(component => {
    Vue.component(component.displayName || component.name, component)
  })
}

export default { install }
